//
//  MPNewsBannerItem.m
//  M800Project
//
//  Created by 姚宗超 on 14/11/10.
//  Copyright (c) 2014年 姚宗超. All rights reserved.
//

#import "MPNewsBannerItem.h"

@implementation MPNewsBannerItem

/*
 index : 资讯id
 listId: 缩列图
 imgUrl : 资讯标题
 url : 资讯详情链接
 */

+ (instancetype)itemWithInfoDic:(NSDictionary *)infoDic
{
    MPNewsBannerItem* item = [MPNewsBannerItem new];
    item.bId = [infoDic objectForKey:@"index"];
    item.listId = [infoDic objectForKey:@"listId"];
    item.imageUrl = [infoDic objectForKey:@"imgUrl"];
    item.sourceUrl = [infoDic objectForKey:@"url"];
    return item;
}

@end
